import type { IllnessTime, VisitType } from '@/enum'
import { illnessTimeOptions, visitOptions } from './Constant'

// 获取就诊时间
export const getIllnessTimeLabel = (value: IllnessTime) => {
  const item = illnessTimeOptions.find((item) => item.value === value)
  return item?.label
}

// 获取是否就诊过
export const getConsultFlagLabel = (value: VisitType) => {
  const item = visitOptions.find((item) => item.value === value)
  return item?.label
}
